package subject

import (
	"github.com/gin-gonic/gin"
	"vrcm/src/vrcm/app/admin/apis/subject"
	"vrcm/src/vrcm/app/admin/router"
)

func init() {
	router.NoCheckRole = append(router.NoCheckRole, registerEventPaperRouter)
}

// registerEventPaperRouter
func registerEventPaperRouter(v1 *gin.RouterGroup) {
	api := apis.EventPaper{}
	r := v1.Group("/event-paper")
	{
		r.GET("", api.GetPage)
		r.POST("/get-by-event-id", api.GetByEventId)
		r.POST("/insert", api.Insert)
		r.PUT("/:id", api.Update)
		r.DELETE("", api.Delete)
		r.POST("/enable", api.Enable)
	}
}
